<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<form:form method="post" cssClass="form-horizontal" id="sniperForm"
	role="form" modelAttribute="oauthClient" action="">
	
	<div class="form-group">
		<label for="clientSecret" class="col-sm-2 control-label">App
			Id</label>
		<div class="col-sm-10">
			<p class="form-control-static">${oauthClient.id }</p>
			<div class="help-block">新建时为空</div>
		</div>
		
	</div>

	<div class="form-group">
		<label for="clientSecret" class="col-sm-2 control-label">App
			Secret</label>
		<div class="col-sm-10">
			<p class="form-control-static">${oauthClient.clientSecret }</p>
		</div>
	</div>

	<div class="form-group">
		<label for="clientName" class="col-sm-2 control-label">App 名称</label>
		<div class="col-sm-10">
			<form:input path="clientName" cssClass="form-control"
				placeholder="name" />
			<div class="help-block">
				<form:errors path="clientName" />
			</div>
		</div>
	</div>

	<div class="form-group">
		<label for="description" class="col-sm-2 control-label">App 描述</label>
		<div class="col-sm-10">
			<form:textarea path="description" cssClass="form-control" />
		</div>
	</div>

	<div class="form-group">
		<label for="clientUrl" class="col-sm-2 control-label">客户端地址</label>
		<div class="col-sm-10">
			<form:input path="clientUrl" cssClass="form-control" placeholder="" />
			<div class="help-block">
				<form:errors path="clientUrl" />
			</div>
		</div>
	</div>

	<div class="form-group">
		<label for="enabled" class="col-sm-2 control-label">启用</label>
		<div class="col-sm-2">
			<form:checkbox path="enabled" />
		</div>
	</div>

	<div class="form-group">
		<div class="col-sm-10 col-md-offset-2">
			<button type="submit" class="btn btn-danger">保存</button>
		</div>
	</div>
</form:form>

<c:import url="../public/ajax_post.jsp"/>